package com.own.business.question.business.service;

import com.own.business.question.entity.bo.PracticeHistoryBo;
import com.own.business.question.entity.map.PracticeHistoryMapVo;
import com.own.business.question.entity.po.PracticeHistory;
import com.own.business.question.entity.query.PracticeHistoryQuery;
import com.own.business.question.entity.vo.PracticeHistoryVo;
import com.own.component.common.base.service.BaseService;
import com.own.component.common.model.UpdateModel;

/**
 * PracticeHistoryService
 *
 * @author 陈学礼 （你是一段成熟的代码，要学会自己改bug）
 * @version 4.0.0
 * @date 2021/05/14 15:49:28
 * @since 4.0.0
 */
public interface PracticeHistoryService extends BaseService<
        PracticeHistory,
        PracticeHistoryBo,
        PracticeHistoryVo,
        PracticeHistoryMapVo,
        PracticeHistoryQuery
        > {

    /**
     * 提交答案
     *
     * @param pk      流水id
     * @param answer  答案信息
     * @param useTime 用时
     * @return 是否提交成功
     */
    UpdateModel<Boolean> submit(Long pk, String answer, Long useTime);

}
